package com.flyduck.event.event;

import com.flyduck.event.model.UserModel;
import org.springframework.context.ApplicationEvent;

/**
 * 用户注册成功事件
 *
 * @author flyduck 2020/10/17 15:07
 * @version V1.0
 * @modify by user: LiuHui 2020/10/17
 * @modify by reason:{原因}
 **/
public class UserRegisterEvent extends ApplicationEvent {
    private static final long serialVersionUID = 1L;

    private UserModel user;

    public UserRegisterEvent(Object source, UserModel user) {
        super(source);
        this.user = user;
    }

    public UserModel getUser() {
        return user;
    }
}
